package org.bigjava.novelplatform.common.utils;

/**
 * @author ykh
 * @create 2022-03-23 9:42
 */
public class StringUtils {
    /**
     * 判断字符串是否为空
     * @param source
     * @return
     */
    public static Boolean isEmpty(CharSequence source){
        return source == null || source.length() == 0;
    }

    public static String toString(CharSequence s){
        if (s == null) {
            return null;
        }
        return s.toString();
    }
}
